package com.gpframework.common.pay.leshua.req;

/**
 * @author eden
 * @date 2018/5/21 下午3:36
 * @desc
 */
public class LeshuaMicroPayReq extends LeshuaBaseReq {
	
	/**
	 * 支付类型
	 */
	public String pay_way;
	
	/**
	 * 订单金额，以分为单位
	 */
	public String amount;
	
	/**
	 * 通知地址
	 */
	public String notify_url;
	
	/**
	 * 下单IP地址
	 */
	public String client_ip;
	
	/**
	 * T0标识，1：T0，不传或传0为T1
	 */
	public String t0;
	
	/**
	 * 商品描述
	 */
	public String body;
	
	/**
	 * 授权码（条码）
	 */
	public String auth_code;
	
	/**
	 * 商户订单号
	 */
	public String third_order_id;

	/**
	 * 公众号APPID
	 */
	public String appid;
	
	/**
	 * 商户门店编号
	 */
	public String shop_no;
	
	/**
	 * 商户终端编号
	 */
	public String pos_no;
	
	/**
	 * 附加数据
	 */
	public String attach;
	
	/**
	 * 指定支付方式
	 */
	public String limit_pay;
	
	/**
	 * 订单优惠标记
	 */
	public String goods_tag;
	
	/**
	 * SN
	 */
	public String sn;
	
	/**
	 * 
	 */
	public LeshuaMicroPayReq(){
		this.service = "upload_authcode";
	}
	
	/**
	 * 
	 * @param pay_way
	 * @param merchant_id
	 * @param third_order_id
	 * @param amount
	 * @param notify_url
	 * @param client_ip
	 * @param t0
	 * @param body
	 * @param auth_code
	 */
	@Deprecated
	public LeshuaMicroPayReq(String pay_way,String merchant_id, String third_order_id,String amount, String notify_url, String client_ip,
			String t0, String body, String auth_code) {
		setService("upload_authcode");
		setPay_way(pay_way);
		setMerchant_id(merchant_id);
		setThird_order_id(third_order_id);
		setAmount(amount);
		setNotify_url(notify_url);
		setClient_ip(client_ip);
		setT0(t0);
		setBody(body);
		setAuth_code(auth_code);
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getPay_way() {
		return pay_way;
	}

	public void setPay_way(String pay_way) {
		this.pay_way = pay_way;
	}

	public String getNotify_url() {
		return notify_url;
	}

	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}

	public String getClient_ip() {
		return client_ip;
	}

	public void setClient_ip(String client_ip) {
		this.client_ip = client_ip;
	}

	public String getT0() {
		return t0;
	}

	public void setT0(String t0) {
		this.t0 = t0;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getAuth_code() {
		return auth_code;
	}

	public void setAuth_code(String auth_code) {
		this.auth_code = auth_code;
	}
	
	public String getThird_order_id() {
		return third_order_id;
	}

	public void setThird_order_id(String third_order_id) {
		this.third_order_id = third_order_id;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getShop_no() {
		return shop_no;
	}

	public void setShop_no(String shop_no) {
		this.shop_no = shop_no;
	}

	public String getPos_no() {
		return pos_no;
	}

	public void setPos_no(String pos_no) {
		this.pos_no = pos_no;
	}

	public String getAttach() {
		return attach;
	}

	public void setAttach(String attach) {
		this.attach = attach;
	}

	public String getLimit_pay() {
		return limit_pay;
	}

	public void setLimit_pay(String limit_pay) {
		this.limit_pay = limit_pay;
	}

	public String getGoods_tag() {
		return goods_tag;
	}

	public void setGoods_tag(String goods_tag) {
		this.goods_tag = goods_tag;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	@Override
	public String toString() {
		return "LeshuaMicroPayReq [pay_way=" + pay_way + ", amount=" + amount
				+ ", notify_url=" + notify_url + ", client_ip=" + client_ip
				+ ", t0=" + t0 + ", body=" + body + ", auth_code=" + auth_code
				+ ", third_order_id=" + third_order_id + ", appid=" + appid
				+ ", shop_no=" + shop_no + ", pos_no=" + pos_no + ", attach="
				+ attach + ", limit_pay=" + limit_pay + ", goods_tag="
				+ goods_tag + ", sn=" + sn + "]";
	}

}
